package com.tuo51.childcare.domain.pay;

import com.tuo51.foudation.model.Domain;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Entity
@Data
@Table(name = "m_paid_record")
public class PaidRecord extends Domain implements Serializable {
  private static final long serialVersionUID = 1L;

  @Column(columnDefinition = "varchar(256) COMMENT '标题'", nullable = false)
  private String title;

  @Column(columnDefinition = "varchar(256) COMMENT '备注'", nullable = false)
  private String comment;

  @Column(columnDefinition = " varchar(45)  COMMENT '用户id'")
  private String staffId;

  @Column(columnDefinition = " varchar(45)  COMMENT '支付对象id'")
  private String objectId;

  @Column(columnDefinition = "int default 0 COMMENT '支付对象类型'")
  private Integer objectType;

  @Column(columnDefinition = "int default 0 COMMENT '支付价格'")
  private Integer price;

  @Column(columnDefinition = "datetime DEFAULT NOW() COMMENT '生效日期'")
  private Date validTo;

}